<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<?php
$this->load->view('admin/public_header');
?>
<div id="middle">
    <?php
    $this->load->view('admin/public_menu');
    ?>
    <div class="right"  id="mainFrame">
        <div class="right_cont">
            <ul class="breadcrumb">
                <?php echo $breadcrumb;?>
            </ul>

            <div class="title_right">
                <strong>帐号信息</strong>
            </div>
            <form action="<?php echo site_url('admin/admins/index/edit');?>" method="post" id="pageForm" target="postIframe">
            	<input type="hidden" value="<?php echo $info['admin_id'];?>" name="id" />
                <table class="table table-bordered" id="base_info">
                    <tr>
                        <td width="80" align="right" bgcolor="#f1f1f1">登录账号: </td>
                        <td width="750" colspan="3">
                            <input type="text" name="admin_name" id="admin_name" value="<?php echo $info['admin_name'];?>" />[*]
                        </td>
                    </tr>
                    <tr>
                        <td width="80" align="right" bgcolor="#f1f1f1">管理组: </td>
                        <td width="750" colspan="3">
                            <select name="group_id">
                            	<option value="">--选择等级--</option>
                            	<?php foreach($groups as $group_id=>$val):?>
                            	<option value="<?php echo $group_id;?>"<?php if($group_id==$info['group_id']):?> selected="selected"<?php endif;?>><?php echo $val['group_name'];?></option>
                            	<?php endforeach;?>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td width="80" align="right" bgcolor="#f1f1f1">修改密码: </td>
                        <td width="750" colspan="3">
                            <input type="password" name="admin_pwd" id="admin_pwd" value="" /> *留空将不修改
                        </td>
                    </tr>
                </table>
                <table  class="margin-bottom-20  table no-border" >
                    <tr>
                        <td>
                        <input type="button" value="修改" class="btn btn-info" style="width:80px;" onclick="$('#pageForm').submit();" />
                        <input type="button" value="返回" class="btn btn-info" onclick="window.history.go(-1)" style="width:80px;" />
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>

</div>
<iframe src="" height="0" width="0" style="display:none;" id="postIframe" name="postIframe"></iframe>
<?php
$this->load->view('admin/public_footer');
?>
